#include <string>
#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

int FindString(string &dst,string& target) {
 int t = dst.find(target);
 if (t == - 1) {
  return -1;
 }
 return t;
}

int main() {
  string t1 ; //= "AVERDXIVYERDIAN"
  string t2 ; //= "RDXI"
  cin>>t1;
  cin>>t2;
  int test = FindString(t1,t2);
  if (test == - 1) {
   cout << "No" << endl;
  }
  else {
   cout << test+1 << endl;
  }
  return 0;
}